from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from emp.views import getEmp,getDep,getCate,listCate,download,getEmpById,deleteEmp
import settings
from django.views.static import serve

admin.autodiscover()


urlpatterns = patterns('',
    # Example:
    #(r'^listCate/rs(?P<path>.+?\.(js|css|jpg|png|gif))$', serve, {'document_root': settings.MEDIA_ROOT}),
    (r'^.*rs/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
    #(r'^emps/(?P<vals>.*)', getEmp),
    #(r'^deps/(?P<vals>.*)', getDep),
    #(r'^cates/(?P<vals>.*)', getCate),
    (r'^listCate/', listCate),
    (r'^download/', download),
    (r'^getEmpById/(?P<id>.*)$', getEmpById),
    (r'^deleteEmp/(?P<id>.*)$', deleteEmp),
    (r'^$', listCate),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)
